package com.wwj.core.wawa.service.impl;

import com.wwj.core.wawa.entity.RoomPlayer;
import com.wwj.core.wawa.entity.mapper.RoomPlayerMapper;
import com.wwj.core.wawa.service.IRoomPlayerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/11/3.
 */
@Service
public class RoomPlayerServiceImpl implements IRoomPlayerService {

    @Resource
    private RoomPlayerMapper roomPlayerMapper;

    @Override
    public List<RoomPlayer> findByRoomIdAndPlayerId(int roomId, int playerId) {
        return roomPlayerMapper.selectRoomPlayerByRoomIdAndPlayerId(roomId, playerId);
    }
}
